const Enquiry = () => import('@/modules/searchSource/views/enquiry.vue')
const EnquiryDetail = () => import('@/modules/searchSource/components/enquiryDetail.vue')
const ManagePricing = () => import('@/modules/searchSource/views/ManagePricing.vue')
const PricingDetail = () => import('@/modules/searchSource/components/ManagePricingDetail.vue')
const parentRouter = [
  {
    label: '寻源管理',
    path: ''
  }
]

const routes = [
  {
    path: '/searchSource/enquiry',
    name: 'Enquiry',
    meta: {
      icon: 'icon-renyuanguanli',
      title: '询价管理',
      keepAlive: true,
      parentTitle: [...parentRouter]
    },
    component: Enquiry
  },
  {
    path: '/searchSource/enquiry/enquiryDetail',
    name: 'EnquiryDetail',
    meta: {
      icon: 'icon-renyuanguanli',
      title: '询价单详情',
      keepAlive: true,
      parentTitle: [...parentRouter, { label: '询价管理', path: '/searchSource/enquiry' }]
    },
    component: EnquiryDetail
  },
  {
    path: '/searchSource/managePricing',
    name: 'ManagePricing',
    meta: {
      icon: 'icon-renyuanguanli',
      title: '定价管理',
      keepAlive: true,
      parentTitle: [...parentRouter]
    },
    component: ManagePricing
  },
  {
    path: '/searchSource/managePricing/pricingDetail',
    name: 'PricingDetail',
    meta: {
      icon: 'icon-renyuanguanli',
      title: '定价单详情',
      keepAlive: true,
      parentTitle: [...parentRouter]
    },
    component: PricingDetail
  }
]
export default routes
